package com.kellyfeng.account.service;

public interface AccountService {
	/**
	 * @return 返回验证码key
	 * @throws AccountServiceException
	 */
	String generateCaptchaKey() throws AccountServiceException;

	/**
	 * @param captchaKey验证码key		
	 * @return	返回验证码图片
	 * @throws AccountServiceException
	 */
	byte[] generateCaptchaImage(String captchaKey) throws AccountServiceException;

	/**
	 * @param signUpRequest 包含注册用户需要的信息
	 * @throws AccountServiceException
	 */
	void signUp(SignUpRequest signUpRequest) throws AccountServiceException;

	/**
	 * @param activationNumber 激活码
	 * @throws AccountServiceException
	 */
	void activate(String activationNumber) throws AccountServiceException;

	/**
	 * @param id 用户名
	 * @param password 密码
	 * @throws AccountServiceException
	 */
	void login(String id, String password) throws AccountServiceException;
}
